翻訳と辞書
Words near each other
・ Concerned Criminals Action Committee
・ Concerned for Working Children
・ Concerned Foreign Service Officers
・ Concerned Group for Republican Prisoners
・ Concerned Philosophers for Peace
・ Concerned Republicans
・ Concerned Scientists
・ Concerned United Birthparents
・ Concerned Women for America
・ Concerning Flight
・ Concerning Hobbits
・ Concerning Mr. Martin
・ Concerning Specific Forms of Masturbation
・ Concerning the Entrance into Eternity
・ Concept (disambiguation)
Concept (generic programming)
・ Concept album
・ Concept and object
・ Concept art
・ Concept car
・ Concept Centaur GT
・ Concept class
・ Concept Composites MD03 Transat
・ Concept development and experimentation
・ Concept drift
・ Concept driven strategy
・ Concept Foundation
・ Concept Ice Vehicle
・ Concept image and concept definition
・ Concept inventory


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Concept (generic programming) : ウィキペディア英語版
Concept (generic programming)
In generic programming, a concept is a description of supported operations on a type, including syntax and semantics. In this way, concepts are related to abstract base classes but concepts do not require a subtype relationship.
==Language use==
The term was in use as early as 1998 for STL,〔Austern, M.H. ''Generic programming and the STL: using and extending the C++ Standard Template Library''. 1998. pp 17–18〕 as this was one of the first libraries that extensively used templates.
In the C++ 1998 standard, the ''Concept'' term was introduced to name just a simple description of the requirements for particular type, usually being a template parameter. It was not encoded in the language explicitly – the concept was expressed only by what operations are tried to be performed on objects of that type and what is expected to work (that is, to compile correctly). There was a proposal to add concepts as an explicit language feature in C++11, though it was rejected as "not ready".
As generics in Java and C# have some similarities to C++'s templates, the role of concepts there is played by interfaces. However, there is one important difference between concepts and interfaces: when a template parameter is required to implement a particular interface, the matching type can only be a class that implements (explicitly) that interface. Concepts bring more flexibility because they can be satisfied by two ways:
* explicitly defined as satisfied by using a concept map (defined separately to the type itself, unlike interfaces)
* implicitly defined for "auto concepts", which can be used also for built in types and other types that were not predestined for this use
Another language implementing something very similar to concepts is Haskell, where the feature is called type classes.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Concept (generic programming)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.